import request from '@/sheep/request';

// 轮胎取单明细 VO
export interface ReleaseRecordsDetailVO {
  tireReleaseRecordsId: number // 轮胎取单ID
  storageQuantity: number // 取出轮胎数量
  tireSeason: string // 季节胎型
  tireBrand: string // 轮胎品牌
  tireModel: string // 轮胎型号
  id: number // 取胎明细ID，主键
}

// 轮胎取单明细 API
export const ReleaseRecordsDetailApi = {
  // 查询轮胎取单明细分页
  getReleaseRecordsDetailPage: async (data: any) => {
    return await request({ url: `/tire/release-records-detail/page`,method: 'GET', data })
  },

  // 查询轮胎取单明细详情
  getReleaseRecordsDetail: async (id: number) => {
    return await request({ url: `/tire/release-records-detail/get?id=` + id,method: 'GET' })
  },

  // 新增轮胎取单明细
  createReleaseRecordsDetail: async (data: ReleaseRecordsDetailVO) => {
    return await request({ url: `/tire/release-records-detail/create`,method: 'POST', data })
  },

  // 修改轮胎取单明细
  updateReleaseRecordsDetail: async (data: ReleaseRecordsDetailVO) => {
    return await request({ url: `/tire/release-records-detail/update`,method: 'PUT', data })
  },

  // 删除轮胎取单明细
  deleteReleaseRecordsDetail: async (id: number) => {
    return await request({ url: `/tire/release-records-detail/delete?id=` + id,method: 'DELETE' })
  },

}
